package com.carkeeper.service.serviceFallback;

import com.carkeeper.dto.AppraisalDTO;
import com.carkeeper.service.AppraisalFeign;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: chaolumen
 * @date ：Created in 2020/6/1
 * @description ：
 * @version: 1.0
 */

@Component
public class AppraisalFallbackFactory implements FallbackFactory<AppraisalFeign> {

    @Override
    public AppraisalFeign create(Throwable cause) {
        return new AppraisalFeign() {
            @Override
            public AppraisalDTO getAppraisal(String id) {
                return null;
            }

            @Override
            public List<AppraisalDTO> getByIds(List<String> ids) {
                return null;
            }
        };
    }
}
